package SimpleFactory;

public class OperationFactory {
    static Operation op = null;
    public static Operation getOperation(char ch){
        switch (ch){
            case '+' :
                op = new AddOperation();
                break;
            case '-':
                op = new MinOperation();
                break;
        }
        return op;
    }
}
